<%@ page pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/base/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<link href="${ctx}/css/main.css" rel="stylesheet" type="text/css" />
	</head>
	<script language="javascript">
		function select(id,userName){
			opener.document.getElementById("userId").value = id;
			opener.document.getElementById("userName").value = userName;
			window.close();
		}
	</script>
	
	<body>
		<form method="post" action="searchUserInfoFromProd.ac" name="userForm">
			<table border="0" cellspacing="1" cellpadding="3" align="center" width="100%">
				<tr>
					<td width="20%" class="td2"> 
						用户名 
					</td>
					<td width="30%" class="td2">
						<input type="text" name="prodOwnerName" size="32" value="${prodOwnerName}">
					</td>
					<td width="20%" class="td2">
						电子邮箱
					</td>
					<td width="30%" class="td2">
						<input type="text" name="email" size="32" value="${email}">
					</td>
				</tr>
				</tr>
				<tr>
					<td class="td11" align="left" colspan="4">
						<input type="submit" name="search" value="查询">
						&nbsp;&nbsp;<input type="reset" name="reset" value="重置">
						&nbsp;&nbsp;<input type="button" name="close" value="关闭" onclick="javascript:window.close();">
					</td>
				</tr>
			</table>
			<BR>
			<table border="0" cellspacing="1" cellpadding="3" align="center" width="100%">
				<tr>
					<td width="10%" class="td1" align="center">
						动作
					</td>
					<td width="15%" class="td1" align="center">
						用户名
					</td>
					<td width="25%" class="td1" align="center">
						电子邮箱
					</td>
					<td width="15%" class="td1" align="center">
						手机号码
					</td>
					<td width="15%" class="td1" align="center">
						固定电话
					</td>
					<td width="10%" class="td1" align="center">
						性别
					</td>
				</tr>
				<c:forEach var="userInfo" items="${userInfoList}">
					<tr>
						<td class="td2" align="center">
							<a href="javascript:select('${userInfo.id}', '${userInfo.userName}');">选择</a>
						</td>
						<td class="td2">
							${userInfo.userName}
						</td>
						<td class="td2">
							${userInfo.email}
						</td>
						<td class="td2">
							${userInfo.mobileNo}
						</td>
						<td class="td2">
							${userInfo.telNo}
						</td>
						<td class="td2" align="center">
							<c:if test="${userInfo.sex == 1}">男</c:if>
							<c:if test="${userInfo.sex == 0}">女</c:if>
						</td>
					</tr>
				</c:forEach>
			</table>
		</form>
	</body>
</html>